package y_2025.m04.d11.t2;

class Mother {
    private double height;
    private double weight;
    private int age;

    public Mother(double height, double weight, int age) {
        this.height = height;
        this.weight = weight;
        this.age = age;
    }

    public void work() {
        System.out.println("妈妈在工作");
    }

    public void doHousework() {
        System.out.println("妈妈在做家务");
    }
}

class Daughter extends Mother {
    private String hobby;

    public Daughter(double height, double weight, int age, String hobby) {
        super(height, weight, age);
        this.hobby = hobby;
    }

    public void watchAnimation() {
        System.out.println("女儿在看动画片：" + hobby);
    }
}

public class UseExtends {
    public static void main(String[] args) {
        Daughter daughter = new Daughter(160, 45, 10, "动画城");
        daughter.work();
        daughter.doHousework();
        daughter.watchAnimation();
    }
}